# 这里存放着三方库的封装方法
# 这里用于引入三方库
require 'write_xlsx'
################　ＴＨＩＳ　ＩＳ　Ａ　ＳＰＬＩＴ　ＬＩＮＥ　ＯＦ　ＢＥＡＵＴＩＦＵＬ　###############
# Excel 写入 方法
def excel_write(col,row,info)
    # Create a new Excel workbook
    workbook = WriteXLSX.new('test.xlsx')
    # Add a worksheet
    worksheet = workbook.add_worksheet
    #  Add and define a format
    format = workbook.add_format
    format.set_bold
    format.set_color('black')
    format.set_align('center')
    # Write a formatted and unformatted string, row and column notation.
    worksheet.write(col,row,info,format)
    # Write xlsx file to disk.
    workbook.close
end
